/*
 * @Author: playwell hzbgzyx@163.com
 * @Date: 2024-09-24 21:36:25
 * @LastEditors: playwell hzbgzyx@163.com
 * @LastEditTime: 2024-09-24 21:46:58
 * @FilePath: \zbgjcaiwujianguan\src\api\system\largeScreen\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request';
// 当前系统时间
export function systemDate() {
    return request({
        url: '/system/largeScreen/systemDate',
        method: 'get',
    });
}


// 营业收入统计柱形图详情
export function revenueStatisticsDetail(pageSize, pageNum, depdId, year, month) {
    return request({
        url: `/system/largeScreen/revenueStatisticsDetailByPage/${pageSize}/${pageNum}/${depdId}/${year}/${month}`,
        method: 'get',
    });
}

// 营业收入统计柱形图
export function revenueStatistics(depdId) {
    return request({
        url: `/system/largeScreen/revenueStatistics/${depdId}`,
        method: 'get',
    });
}

// 获取公司树列表
export function deptTree() {
    return request({
        url: `/system/largeScreen/deptTree`,
        method: 'get',
    });
}
// 本年累计营业收入
export function currentYearTotalRevenue(depdId) {
    return request({
        url: `/system/largeScreen/currentYearTotalRevenue/${depdId}`,
        method: 'get',
    });
}

// 本年累计营业毛利
export function currentYearTotalGrossProfit(depdId) {
    return request({
        url: `/system/largeScreen/currentYearTotalGrossProfit/${depdId}`,
        method: 'get',
    });
}
// 本年累计营业成本
export function currentYearTotalCost(depdId) {
    return request({
        url: `/system/largeScreen/currentYearTotalCost/${depdId}`,
        method: 'get',
    });
}
// 本年分项营业收入
export function currentYearSubitemlRevenue(depdId) {
    return request({
        url: `/system/largeScreen/currentYearSubitemlRevenue/${depdId}`,
        method: 'get',
    });
}
// 营业成本统计柱形图详情
export function costStatisticsByPillarDetail(pageSize, pageNum, depdId, year, month) {
    return request({
        url: `/system/largeScreen/costStatisticsByPillarDetailByPage/${pageSize}/${pageNum}/${depdId}/${year}/${month}`,
        method: 'get',
    });
}

// 营业成本统计柱形图
export function costStatisticsByPillar(depdId) {
    return request({
        url: `/system/largeScreen/costStatisticsByPillar/${depdId}`,
        method: 'get',
    });
}

// 营业成本统计饼图
export function costStatisticsByPie(depdId, ref) {
    return request({
        url: `/system/largeScreen/costStatisticsByPie/${depdId}`,
        method: 'get',
    });
}

// 成本费用收入比
export function costRevenueRatio(depdId) {
    return request({
        url: `/system/largeScreen/costRevenueRatio/${depdId}`,
        method: 'get',
    });
}

// 简报(列表)
export function briefing() {
    return request({
        url: `/system/largeScreen/briefing`,
        method: 'get',
    });
}

// 简报(详情)
export function briefingDetail(id) {
    return request({
        url: `/system/largeScreen/briefingDetail/${id}`,
        method: 'get',
    });
}